package com.example.springstudy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springstudy.dao.dto.SkuDto;
import com.example.springstudy.dao.dto.SkuExportDto;
import com.example.springstudy.entity.Sku;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SkuMapper extends BaseMapper<Sku> {
    List<SkuExportDto> findExportSku(List<Integer> ids);

    List<Integer> findCategorySkuList(int categoryId, List<Integer> skuIds);
    boolean saveSkuCategory(int categoryId, List<Integer> skuIds);
}
